%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Macros, commands and environments for TempLaTeX
%% 
%% Ramon Casero <rcasero@gmail.com>
%%
%% This library is free software; you can redistribute it and/or
%% modify it under the terms of the GNU Lesser General Public
%% License as published by the Free Software Foundation; either
%% version 2.1 of the License, or (at your option) any later version.
%%
%% This library is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
%% Lesser General Public License for more details.
%%
%% You should have received a copy of the GNU Lesser General Public
%% License along with this library; if not, write to the Free Software
%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%% \fullenvboxedfigure[width=0.5\textwidth]{file}{caption}{label}

\newcommand{\fullenvboxedfigure}[4][0.5\textwidth]{%
  \begin{figure}%
    \centering%
    \setlength{\fboxsep}{0.5cm}%
    \fbox{%
      \includegraphics[width=#1]{#2}%
    }%
    \caption{#3}%
    \label{#4}%
  \end{figure}%
}

%% \boxedfigure[width=0.5\textwidth]{figure.eps}

\newcommand{\boxedfigure}[2][0.5\textwidth] {%
  \setlength{\fboxsep}{0.5cm}%
  \fbox{%
    \includegraphics[width=#1]{#2}%
  }%
}

%% \boxedtext{text}

\newcommand{\boxedtext}[1]{%
  \noindent \fbox{\parbox{\columnwidth}{#1}%
}}

